package mazegame;

import java.util.*;

public class ClientUpdateTimer
{
    public Timer timer;
    private PlayerUI client;

	public ClientUpdateTimer (int interval, PlayerUI client)
    {
        this.client = client;
        timer = new Timer();
        timer.scheduleAtFixedRate(new ClientUpdateTimerTask(), interval, interval);
    }

    class ClientUpdateTimerTask extends TimerTask
    {
        public void run()
        {
            client.requestUpdate();
        }
    }
}